package cn.raven.org.mapper;

import cn.raven.basic.mapper.BaseMapper;
import cn.raven.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**

* @Description: 部门管理mapper层接口
* @Author: king
* @Version: 1.0
* @Date:  2022/6/21 17:59  
  */
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee findByUsername(String username);

    Employee findByPhone(String phone);

    void delEmployeeRole(Long id);

    void addEmployeeRole(@Param("empId") Long id,@Param("roleIds") List<Long> roles);
    //设置pet基本信息表的shopId
    Employee findByLogininfoId(Long id);

    List<Employee> findByShopId(Long shopId);
}
